package com.study.design.decorator.example;

public class Client {
    public static void main(String[] args) {
        Pancake basicsPancake = new BasicsPancake();
        basicsPancake = new EggDecorator(basicsPancake);
        basicsPancake = new GreensDecorator(basicsPancake);
        System.out.println(basicsPancake.getMsg() +"：价钱："+ basicsPancake.getPrice());
    }
}
